home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / catD / drv_usecwait.z / drv_usecwait
Encoding:
Text File  |  2002-10-03  |  4.9 KB  |  132 lines

  1.  
  2.  
  3.  
  4. ddddrrrrvvvv____uuuusssseeeeccccwwwwaaaaiiiitttt((((DDDD3333))))                                              ddddrrrrvvvv____uuuusssseeeeccccwwwwaaaaiiiitttt((((DDDD3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _dddd_rrrr_vvvv______uuuu_ssss_eeee_cccc_wwww_aaaa_iiii_tttt - busy-wait for specified interval
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
  14.      _vvvv_oooo_iiii_dddd _dddd_rrrr_vvvv______uuuu_ssss_eeee_cccc_wwww_aaaa_iiii_tttt_((((_cccc_llll_oooo_cccc_kkkk______tttt _m_i_c_r_o_s_e_c_s_))))_;;;;
  15.  
  16.    AAAArrrrgggguuuummmmeeeennnnttttssss
  17.      _m_i_c_r_o_s_e_c_s The number of microseconds to busy-wait.
  18.  
  19. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.      _dddd_rrrr_vvvv______uuuu_ssss_eeee_cccc_wwww_aaaa_iiii_tttt causes the caller to busy-wait for at least the number of
  21.      microseconds specified by _m_i_c_r_o_s_e_c_s.  The amount of time spent busy-
  22.      waiting may be greater than the time specified by _m_i_c_r_o_s_e_c_s but will not
  23.      be less.
  24.  
  25.    RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
  26.      None
  27.  
  28. UUUUSSSSAAAAGGGGEEEE
  29.      _dddd_rrrr_vvvv______uuuu_ssss_eeee_cccc_wwww_aaaa_iiii_tttt should only be used to wait for short periods of time (less
  30.      than a clock tick) or when it is necessary to wait without sleeping (for
  31.      example, at interrupt level).  When the desired delay is at least as long
  32.      as clock tick and it is possible to sleep, the _dddd_eeee_llll_aaaa_yyyy(D3) function should
  33.      be used instead since it will not waste processor time busy-waiting as
  34.      _dddd_rrrr_vvvv______uuuu_ssss_eeee_cccc_wwww_aaaa_iiii_tttt does.
  35.  
  36.      Because excessive busy-waiting is wasteful the driver should only make
  37.      calls to _dddd_rrrr_vvvv______uuuu_ssss_eeee_cccc_wwww_aaaa_iiii_tttt as needed, and only for as much time as needed.
  38.      _dddd_rrrr_vvvv______uuuu_ssss_eeee_cccc_wwww_aaaa_iiii_tttt does not raise the interrupt priority level; if the driver
  39.      wishes to block interrupts for the duration of the wait, it is the
  40.      driver's responsibility to set the priority level before the call and
  41.      restore it to its original value afterward.
  42.  
  43.    LLLLeeeevvvveeeellll
  44.      Initialization, Base or Interrupt.
  45.  
  46.    SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
  47.      Does not sleep.
  48.  
  49.      Driver-defined basic locks, read/write locks, and sleep locks may be held
  50.      across calls to this function.
  51.  
  52.    WWWWaaaarrrrnnnniiiinnnnggggssss
  53.      Busy-waiting can increase the preemption latency experienced by high
  54.      priority processes.  Since short and bounded preemption latency can be
  55.      critical in a real time environment, drivers intended for use in such an
  56.      environment should not use this interface or should limit the length of
  57.      the wait to an appropriately short length of time.
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. ddddrrrrvvvv____uuuusssseeeeccccwwwwaaaaiiiitttt((((DDDD3333))))                                              ddddrrrrvvvv____uuuusssseeeeccccwwwwaaaaiiiitttt((((DDDD3333))))
  69.  
  70.  
  71.  
  72. RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
  73.      _dddd_eeee_llll_aaaa_yyyy(D3), _dddd_rrrr_vvvv______hhhh_zzzz_tttt_oooo_uuuu_ssss_eeee_cccc(D3), _dddd_rrrr_vvvv______uuuu_ssss_eeee_cccc_tttt_oooo_hhhh_zzzz(D3), _iiii_tttt_iiii_mmmm_eeee_oooo_uuuu_tttt(D3),
  74.      _uuuu_nnnn_tttt_iiii_mmmm_eeee_oooo_uuuu_tttt(D3)
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.                                                                         PPPPaaaaggggeeee 2222
  128.  
  129.  
  130.  
  131.